<template>
    <el-row>
        <el-col :span="24">

        </el-col>
    </el-row>
    <el-row>
        <el-col :span="24">
            <el-table :data="checkList" border style="width: 100%">
            <el-table-column prop="medicalTechnology.techName" label="项目名称" width="180" />
            <el-table-column prop="medicalTechnology.techPrice" label="价格" />
        </el-table>
        </el-col>
    </el-row>
</template>

<script setup>
import httpRequest from '@/common';
import { ElMessage } from 'element-plus';
import {ref,getCurrentInstance, onMounted,defineProps, watch} from 'vue';

const {proxy} = getCurrentInstance();

const props = defineProps({
    rid:{
        type: Number,
        required: true
    }
});

const checkList = ref([])

const getCheckList = ()=>{
    httpRequest(
            proxy,
            'get',
            '/medicaltech/type/检查',
            null,
            resultBean=>{
                checkList.value = resultBean.data;
            }
        )
}

const checkRequestList = ref([])

const getCheckRequestList = ()=>{
    httpRequest(
            proxy,
            'get',
            '/checkrequest/reg/'+props.rid,
            null,
            resultBean=>{
                checkRequestList.value = resultBean.data;
            }
        )
}

onMounted(()=>{
    setTimeout(()=>{
        getCheckRequestList();
    },200);
})


</script>

<style>
</style>